Input/output buffer

ABSTRACT

An input/output buffer that protects a circuit from voltage signals provided from an external device. The input/output buffer includes a reference power generation circuit connected to a high voltage power supply and a low voltage power supply to convert the voltage of an external voltage signal and generate reference power. The reference power generation circuit has a protection circuit including a plurality of MOS transistors for decreasing the voltage of the external voltage signal to a predetermined voltage when the input/output buffer is not supplied with the voltage of the high voltage power supply. Each of the MOS transistors has a back gate connected to a predetermined node at which the voltage is less than the voltage of the high voltage power supply and greater than the voltage of the low voltage power supply.

CROSS-REFERENCE TO RELATED APPLICATION

[0001] This application is based upon and claims the benefit of priorityof Japanese Patent Applications No. 2002-159696, filed on May 31, 2002,the contents being incorporated herein by reference.

BACKGROUND OF THE INVENTION

[0002] The present invention relates to an input/output buffer, an inputbuffer, and an output buffer.

[0003] Due to the recent progress in multimedia and the popularity ofasymmetric digital subscriber line (ADSL) and wireless LAN, the numberof households having personal computers (PC) has increased. It isrequired that the power consumption be reduced in peripheral equipmentof a personal computer. Thus, the circuits of the peripheral equipmentare miniaturized and operated with low voltage. Such low voltagecircuits must be protected when the circuits are not supplied with poweror when the low voltage circuits are provided with a voltage signal thatis greater than the operational voltage.

[0004] A PC is normally connected to a display, a mouse, a printer, amemory, a modem, or a game device by means of a bus or an input/outputport (I/O port).

[0005] A bus is classified as an internal bus or an external bus. Theinternal bus connects the CPU and the memory. The external bus connectsthe CPU and an I/O port (e.g., graphic board or SCSI board). Examples ofan external bus include, for example, industrial standard architecture(ISA), peripheral component interconnect (PCI), small computer systeminterface (SCSI), IEEE 1394, universal serial bus (USB), integrateddrive electronics (IDE), and AT attachment (ATA).

[0006] The I/O port is an interface connecting the PC and the peripheralequipment and normally includes a port exclusive connector. The I/O portincludes a serial port connected to, for example, a mouse and modem, aparallel port connected to a printer, and a game port connected to agame device.

[0007]FIG. 1 is an explanatory diagram illustrating a layout example ofconnection pins in a game port (joystick port), which is connected to ajoystick. A joystick port connector 71, which includes +5 V (volts)power supply terminals, digital input terminals, analog input terminal,and ground terminals, may be connected to joysticks A and B. An examplein which the joysticks A and B each have two buttons will now bediscussed.

[0008] The +5 power terminals are normally directly connected to amotherboard, and current flows through the +5 power supply terminals tothe motherboard. Digital signals (A1, A2, A3, A4 in FIG. 1) are inputfrom the buttons of the joysticks A and B, which are connected to theport. The digital input terminals receive, for example, a signal havinga low level (V) when the buttons of the joysticks A and B are pushed anda signal having a high level when the buttons of the joysticks A and Bare not pushed.

[0009] The analog input terminals receive an analog signal (AX, AY, BX,BY) that is in accordance with the resistances of the joysticks A and B.

[0010] More specifically, the joystick port includes a one shotmultivibrator 72 as shown in FIG. 2, which is connected to an analoginput terminal via an input/output buffer 73. A resistor 74 having aresistance of, for example, 2.2 kΩ is connected between the analog inputterminals and the multivibrator 72. A 0.011 μF timing capacitor 75 isconnected between the output terminal of the multivibrator 72 and aground terminal. The joysticks A and B each have a variable resistor 76(0 to 100 kΩ). The resistor 76 has a first terminal connected to a +5power supply terminal and a second terminal connected to the analoginput terminal.

[0011] When the analog input terminal is provided with an analog signalfrom the joysticks A and B, the multivibrator 72 generates an outputsignal having a high level (5 V). The high output signal charges thecapacitor 75. When the voltage of the capacitor 75 reaches 3.3 V, themultivibrator 72 generates a signal at a low level (0 V). When themultivibrator 72 is outputting the high signal, the resistance of thejoysticks A and B is proportional to the resistance of the variableresistors 76. In other words, position information of the joysticks Aand B may be detected from the resistance of the variable resistor 76.

[0012] Due to the decrease in the operational voltage of the interface(I/O port), the circuits used in peripheral equipment are not operatedunder the same power supply voltage. Thus, an input/output buffer forthe I/O port must be able to accept signals having a voltage that isgreater than the operational voltage of the input/output buffer.

[0013] For example, when the power supply voltage of the input/outputbuffer 73 is 3.3 V, a 5 V voltage signal for operating the joysticks Aand B is input to the input terminal of the input/output buffer 73. Inthis case, the input/output buffer 73 must be able to accept a 5 Vvoltage signal.

[0014] The following input/output buffers are known to be able to acceptsignals having a voltage that is greater than the power supply voltage:

[0015] first prior art example, input/output buffer having a tolerantfunction; and

[0016] second prior art example, input/output buffer having a voltageresistance function at a circuit section to which a voltage signal,which is greater than the operational voltage, is applied in theinput/output buffer.

[0017]FIG. 3 is a schematic block diagram of an input/output buffer 81according to the first prior art example. The input/output buffer 81includes an input/output circuit 82, an input circuit 83, an outputcircuit 84, and a tolerant circuit 85.

[0018] The input/output circuit 82 sends a voltage signal EB, which isan external input signal, to the input circuit 83 and the tolerantcircuit 85. The tolerant circuit 85 generates a voltage signal BP havinga voltage that is in accordance with the input voltage signal EB. Theinput circuit 83 generates a signal X by adjusting the voltage signal EB(external input signal) to an optimal signal X and outputting the signalX to an internal circuit (not shown).

[0019] The output circuit 84 receives a data signal A and an outputcontrol signal C from the internal circuit. The output circuit 84generates control signals AP and AN in accordance with an output controlsignal C and provides the control signals AP and AN to the input/outputcircuit 82. The input/output circuit 82 generates the voltage signal EBin response to the control signals AP and AN and sends the voltagesignal EB to the external equipment.

[0020] The circuits of the input/output buffer 81 will be described inmore detail. The output circuit is a generally used circuit and thuswill not be discussed.

[0021]FIG. 4 is a circuit diagram of the input/output circuit 82. Theinput/output circuit 82 includes p-channel MOS transistors (PMOStransistors) Pt1 and Pt2 and n-channel MOS transistors (NMOStransistors) Nt1 and Nt2.

[0022] The transistors Pt1 and Pt2 are connected in series, and thesource of the transistor Pt1 is connected to a first high voltage powersupply VDE. The gate of the transistor Pt1 receives the control signalAP from the output circuit 84. The drain of the transistor Pt1 isconnected to the source of the transistor Pt2. The gate of thetransistor Pt2 is connected to a low voltage power supply VSS, and thedrain of the transistor Pt2 is connected to the drain of the transistorNt1.

[0023] The back gates of the transistor Pt1 and the transistor Pt2 areeach connected to the output of the tolerant circuit 85 and hassubstantially the same voltage as the voltage signal BP, which isgenerated by the tolerant circuit 85.

[0024] The transistors Nt1 and Nt2 are connected in series, and thesource of the transistor Nt2 is connected to the low voltage powersupply VSS. The drains of the transistors PT2, Nt1 are connected to eachother, and a node N1 between the transistors Pt2 and Nt1 is connected toan input/output terminal 82 a of the voltage signal EB. A first highvoltage power supply VDE is a power supply for supplying an externalcircuit that is connected to the input/output buffer 81 with operationalvoltage and has, for example, a voltage of 3.3 V. The low voltage powersupply VSS is the ground (GND).

[0025] The gate of the transistor Nt1 is connected to the first highvoltage power supply VDE, and the back gate of the transistor Nt1 isconnected to the low voltage power supply VSS. The gate of thetransistor Bt2 receives the control signal AN from the output circuit84, and the back gate of the transistor Nt2 is connected to the lowvoltage power supply VSS.

[0026]FIG. 5 is a circuit diagram of the tolerant circuit 85. Thetolerant circuit 85 includes a resistor RI and PMOS transistors Pt3 toPt5.

[0027] The resistor R1, which is an input protection circuit, has oneend connected to the node N1 (input/output circuit 82) of theinput/output circuit 82 and another end connected to the gate of thetransistor Pt3. The resistor R1 decreases the voltage of the voltagesignal EB, which is input to the input/output circuit as an externalinput signal). The voltage signal EB of which voltage has been decreased(voltage signal EBR) is provided to the gate of the transistor Pt3.

[0028] The source of the transistor Pt3 is connected to the first highvoltage power supply VDE, and the drain of the transistor Pt3 isconnected to the source of the transistor Pt4. The transistors Pt4 andPt5 are connected in series and have gates that are connected to thefirst high voltage power supply VDE. The drain of the transistor Pt5 isconnected to a node N2 between the resistor R1 and the transistor Pt3.The drain of the transistor Pt5 is provided with the gate voltage of thetransistor Pt3 (voltage signal EBR).

[0029] The back gates of the transistors Pt3 to Pt5 are connected to theback gates of the other transistors and to a node between thetransistors Pt3 and Pt4. The tolerant circuit 85 outputs the voltagesignal BP, the voltage of which is the same as the voltage at the nodebetween the transistors Pt3 and Pt4.

[0030]FIG. 6 is a circuit diagram of the input circuit 83. The inputcircuit 83 includes PMOS transistors Pt6 to Pt8 and NMOS transistors Nt3to Nt7. The drain of the transistor Nt3 is connected to the first highvoltage power supply VDE, and the source and gate of the transistor Nt3are connected to each other. The transistors Nt4 and Nt5 are connectedin series, and the gates of the transistors Nt4 and Nt5 are connected tothe first high voltage power supply VDE. The source of the transistorNt5 is connected to the node N2 of the tolerant circuit 85 and receivesthe gate voltage of the transistor Pt3 (voltage signal EBR). The drainof the transistor Nt4 is connected to the source of the transistor Nt3,and the voltage at node N3 between the transistors Nt4 and Nt3 issupplied to the gates of the transistors Pt7 and Nt6. The back gates ofthe transistors Nt3 to Nt5 are each connected to the low voltage powersupply VSS.

[0031] The source of the transistor Pt6 is connected to the first highvoltage power supply VDE, and the gate of the transistor Pt6 isconnected to the node N2 of the tolerant circuit 85 to receive thevoltage signal EBR. The drain of the transistor Pt6 is connected to thesource of the transistor Pt7, and the transistor Pt7 is connected to thetransistor Nt6. The source of the transistor Nt6 is connected to the lowvoltage power supply VSS. The back gates of the transistors Pt6 and Pt7are connected to the output of the tolerant circuit 85 and have aboutthe same voltage as the voltage signal BP. The back gate of thetransistor Nt6 is connected to the low voltage power supply vss.

[0032] The gates of the transistors Pt8 and Nt7 are connected to thedrains of the transistors Pt7 and Nt6. The source of the transistor Pt8is connected to a second high voltage power supply VDI, and the drain ofthe transistor Pt8 is connected to the drain of the transistor Nt7. Thesource of the transistor Nt7 is connected to the low voltage powersupply VSS. The second high voltage power supply VDI is a power supplyfor supplying the internal circuit with operational voltage and has, forexample, 1.8V. The back gate of the transistor Pt8 is connected to thesecond high voltage power supply VDI, and the back gate of thetransistor Nt7 is connected to the low voltage power supply VSS. Thesignal X, which has the drain voltage of the transistors Pt8 and Nt7, isprovided to the internal circuit (not shown).

[0033] An example in which the voltage signal EB (external input signal)is input to the input/output buffer 81 will now be discussed.

[0034] 1. Case in which the voltage signal EB is close to the voltage ofthe low voltage power supply VSS:

[0035] In this case, the transistor Pt3 switches on in the tolerantcircuit 85. Accordingly, the tolerant circuit 85 outputs the voltagesignal BP, the voltage of which is the same as the first high voltagepower supply VDE.

[0036] In the input circuit 83, the transistor Pt6 switches on and thesource of the transistor Pt7 is connected to the first high voltagepower supply VDE. In this state, the power supply VDE activates thetransistors Nt4 and Nt5, and the transistor Nt3 is inactivated. Thisinputs the voltage signal EBR to the gates of the transistors, which inturn, activates the transistor Pt7 and inactivates the transistor Nt6.As a result, the gates of the transistors Pt8 and Nt7 are connected tothe high voltage power supply VDE. This inactivates the transistor Pt8and activates the transistor Nt7. Accordingly, the input circuit outputsthe signal X, which has the voltage of the low voltage power supply VSS,that is, a low level.

[0037] 2. Case in which the voltage signal EB is close to the voltage ofthe high voltage power supply VDE (under the condition that EB<VDE issatisfied):

[0038] In this case, in the tolerant circuit 85, it is difficult for thetransistors Pt3 to Pt5 to switch on, and the transistors Pt3 to Pt5substantially function as a series-connected resistor. Accordingly, thetolerant circuit 85 outputs the voltage signal EBR, or the voltagesignal BP that has about the same voltage as the first high voltagepower supply VDE.

[0039] In the input circuit 83, the transistor Pt6 switches off. In thisstate, although it is difficult for the transistors Nt3 to Nt5 to switchon since the gate-source voltage is small, a voltage signal having avoltage that is slightly lower than that of the high voltage powersupply VED (e.g., the voltage signal being about 3.1 V when the highvoltage power supply VDE has 3.3 V) is input to the gates of thetransistors Pt7 and Nt6. In response to the voltage signal, thetransistor Pt7 switches on and the transistor Nt6 switches on. As aresult, the low voltage power supply VSS is connected to the gates ofthe transistors Pt8 and Nt7. This activates the transistor Pt8 andinactivates the transistor Nt7. Accordingly, the input circuit 83outputs the voltage of the second high voltage power supply VDI, or thesignal X at a high level. 3. Case in which the voltage signal EB exceedsthe first high voltage power supply VDE:

[0040] In this case, in the tolerant circuit 85, the transistor Pt5switches on since its source voltage (voltage signal EBR) is greaterthan the gate voltage (high voltage power supply VDE). In this state,the transistor Pt4 switches on in the same manner. Accordingly, thetolerant circuit 85 outputs the voltage signal BP, the voltage of whichis about the same as that of the voltage signal EB.

[0041] In the input circuit 83, the transistor Pt6 is inactivated. Inthis state, the transistor Nt4 switches off since its source voltage(voltage signal EBR) is greater than the gate voltage (high voltagepower supply VDE). In the same manner, the transistor Nt5 switches off.However, the gate voltage of the transistor Nt3 increases and activatesthe transistor Nt3. In this state, the gates of the transistors Pt7 andNt6 are provided with the voltage signal, the voltage of which isdecreased from that of the first high voltage power supply VDE by thethreshold voltage of the transistor Nt3. In response to the voltagesignal, the transistor Pt7 switches off, and the transistor Nt6 switcheson. As a result, the gates of the transistors Pt8 and Nt7 are connectedto the low voltage power supply VSS. This activates the transistor Pt8and inactivates the transistor Nt7. Accordingly, the input circuit 83outputs the voltage of the second high voltage power supply VDI, or thesignal X at a high level.

[0042] The back gates of the transistors Pt6 and Pt7 have the samevoltage as that of the voltage signal (voltage adjusted in accordancewith the voltage signal EB). Thus, even if the voltage of the voltagesignal EB is greater than that of the first high voltage power supplyVDE, the gate voltage becomes greater than the back gate voltage andprevents the generation of a leak current in the transistors Pt6 andPt7. Accordingly, the input/output buffer 81 adjusts the voltage signalEB to a proper voltage (the operational voltage of the internal circuit)and outputs the voltage signal EB even if an external input signalhaving the voltage signal EB (e.g., 5 V), which is greater than theoperational voltage (3.3 V), is input to the input/output buffer 81.

[0043] When the first high voltage power supply VDE does not supply theinput/output buffer 81 with power (inactivated state), devices may bedamaged and a leakage current may flow in the input/output buffer 81.Normally, in a personal computer or the like, a power supply circuit iscontinuously supplied with power. In this state, a voltage signal may beinput to the inactivated input/output buffer 81 from an externalcircuit. In such a case, the application of a voltage greater than thepower supply voltage may damage devices or produce leakage current.

[0044] More specifically, if the high voltage signal EB is input to theinput/output buffer from an external device when the input/output buffer81 is not supplied with power (high voltage power supply VDE), voltagegreater than that of the power supply VDE is applied between the gateand drain of the transistor Pt2 and the gate and source of thetransistors Nt1, Pt3, Pt5, Pt6, and Nt5. In such a case, high voltage,which is greater than the operational voltage, is applied to the gateoxidization film of each transistor. This produces short circuitsbetween gates and drains and between gates and sources. Thus, theinput/output buffer 81 is not suitable for equipment having a hot plugfunction.

[0045] In the input/output buffer having a voltage resistance functionat the predetermined circuit sections, the gate oxidation film thatdirectly receives the high voltage signal must be formed thickly whilethe gate oxidization films of the other transistors are formed with thenormal thickness. This increases the circuit cost and increases theprocessing time.

[0046] To solve the above problem, Japanese Laid-Open Patent PublicationNo. 2000-29551 uses a buffer protection circuit, which will now bediscussed.

[0047]FIG. 7 is a circuit diagram of a prior art voltage generator 91,which is a buffer protection circuit. The voltage generator 91 includesPMOS transistors 92 to 94 and NMOS transistors 95 to 97. The source ofthe transistor 92 and the gate of the transistor 95 are connected to apower supply VDD. The drain of the transistor 95 is connected to thegate of the transistor 92, and the source of the transistor 95 isconnected to a power supply VSS (ground). Two diode-connectedtransistors 96 and 97 are connected in series between the drain of thetransistor 92 and a terminal PAD.

[0048] When the power supply voltage VDD exists, the voltage generator91 generates the reference voltage VDD2 having about the same voltage asthe power supply voltage VDD. When the power supply voltage VDD does notexist, the voltage generator 91 drops the voltage of the voltage signalinput to the terminal PAD by a voltage corresponding to two diodes. Thevoltage generator 91 adjusts the voltage signal input to the terminalPAD to a proper voltage and generates reference voltage VDD2. Thisprotects circuits from high voltage signals input to the terminal PADregardless of whether or not the power supply VDD exists.

[0049] However, the voltage generator 91 (FIG. 7) has the shortcomingsdescribed below.

[0050] (1) The back gates of the transistors are connected to the powersupply VSS (ground). Thus, when the power supply VDD does not exist(VDD=0), high voltage is applied between the gate and back gate of eachof the transistors 96 and 97. This causes device deterioration. Such ashortcoming also occurs when the transistors 96 and 97 are PMOStransistors.

[0051] (2) To sufficiently control the voltage drop in thediode-connected transistors 96 and 97, the transistor 94 configures a DCpath between the terminal and the power supply VSS. However, in the DCpath, the voltage of the power supply VDD decreases to about the samevoltage as the power supply VSS. Further, when the transistor 94 isactivated, the reference voltage VDD2 decreases. Thus, the referencevoltage VDD2 having the intended voltage level cannot be generated. Whenan NMOS transistor configures the transistor 94 and the power supply VSSconfigures the gate input of the transistor 94, the path through whichcurrent flows is eliminated. As a result, the high voltage signal inputto the terminal PAD cannot be decreased to the proper voltage togenerate the reference voltage VDD2.

[0052] (3) The forward direction of the diode configured by thetransistors 96 and 97 is the direction from node A to the terminal PAD.Thus, when the voltage at node A becomes greater than that at theterminal PAD (e.g., if the voltage of the voltage signal provided to theterminal PAD is the same as the voltage of the power supply voltage(ground)), current flows from the node A to the terminal PAD. Thisdecreases the reference voltage VDD2 and the reference voltage VDD2cannot be generated with the intended voltage level. If a high voltagesignal is input to the terminal PAD when PMOS transistors configure thetransistors 96 and 97, the effect of junction temperature increases theresistance of each PMOS transistor. This increases the differencebetween the voltages applied to each PMOS transistor and damages thedevice.

SUMMARY OF THE INVENTION

[0053] It is an object of the present invention to provide aninput/output buffer, an input buffer, and an output buffer that protectcircuits from voltage signals provided by an external device regardlessof whether power is being supplied.

[0054] To achieve the above object, the present invention provides aninput/output buffer for use with a high voltage power supply and a lowvoltage power supply and receiving an external voltage signal. Theinput/output buffer includes a reference power generation circuitconnectable to the high voltage power supply and the low voltage powersupply for converting the voltage of the external voltage signal andgenerating reference power. The reference power generation circuithaving a protection circuit including a plurality of MOS transistors fordecreasing the voltage of the external voltage signal to a predeterminedvoltage when the input/output buffer receives the external voltagesignal and is not supplied with the voltage of the high voltage powersupply. Each of the MOS transistors has a back gate connected to apredetermined node at which the voltage is less than the voltage of thehigh voltage power supply and greater than the voltage of the lowvoltage power supply.

[0055] A further aspect of the present invention is an input/outputbuffer for receiving an external voltage signal via a resistor and areference voltage signal. The input/output buffer having an inputcircuit including an n-channel MOS transistor and a comparator connectedto the n-channel MOS transistor. The n-channel MOS transistor includes asource for receiving the external voltage signal via the resistor, agate connected to the source, and a drain for receiving reference power,the voltage of which is divided by a divisional resistor. The comparatorcompares the external voltage signal with the reference voltage signalto determine whether the voltage of the external voltage signal isgreater than a predetermined threshold voltage from the comparison.

[0056] A further aspect of the present invention is a method forprotecting an input/output buffer from a voltage signal that is providedfrom an external device. The input/output buffer is connected to a highvoltage power supply and a low voltage power supply and includes aninput/output circuit for transferring data with the external device. Themethod including decreasing the voltage of the voltage signal to apredetermined voltage with a plurality of MOS transistors, which areconnected in series between the high voltage power supply and the lowvoltage power supply. Each MOS transistor has a back gate to generatereference power when the input/output buffer is not supplied with thevoltage of the high voltage power supply. The method further includessupplying the input/output circuit with the reference power, andsupplying the back gate of each MOS transistor with voltage that is lessthan the voltage of the high voltage power supply and greater than thevoltage of the low voltage power supply.

[0057] A further aspect of the present invention is an input buffer foruse with a high voltage power supply and a low voltage power supply andfor receiving an external voltage signal. The input buffer includes areference power generation circuit connectable to the high voltage powersupply and the low voltage power supply for converting the voltage ofthe external voltage signal and generating reference power. Thereference power generation circuit having a protection circuit includinga plurality of MOS transistors for decreasing the voltage of theexternal voltage signal to a predetermined voltage when the externalvoltage signal is received and the voltage of the high voltage powersupply is not supplied. Each of the MOS transistors has a back gateconnected to a predetermined node at which the voltage is less than thevoltage of the high voltage power supply and greater than the voltage ofthe low voltage power supply.

[0058] A further aspect of the present invention is an input buffer forreceiving an external voltage signal via a resistor and a referencevoltage signal. The input buffer has an input circuit including ann-channel MOS transistor and a comparator connected to the n-channel MOStransistor. The n-channel MOS transistor includes a source for receivingthe external voltage signal via the resistor, a gate connected to thesource, and a drain for receiving reference power, the voltage of whichis divided by a divisional resistor. The comparator compares theexternal voltage signal with the reference voltage signal to determinewhether the voltage of the external voltage signal is greater than apredetermined threshold voltage from the comparison.

[0059] A further aspect of the present invention is an output buffer foruse with a high voltage power supply and a low voltage power supply andreceiving an external voltage signal. The output buffer includes areference power generation circuit connectable to the high voltage powersupply and the low voltage power supply for converting the voltage ofthe external voltage signal and generating reference power. Thereference power generation circuit has a protection circuit including aplurality of MOS transistors for decreasing the voltage of the externalvoltage signal to a predetermined voltage when the output bufferreceives the external voltage signal and is not supplied with thevoltage of the high voltage power supply. Each of the MOS transistorshas a back gate connected to a predetermined node at which the voltageis less than the voltage of the high voltage power supply and greaterthan the voltage of the low voltage power supply.

[0060] Other aspects and advantages of the present invention will becomeapparent from the following description, taken in conjunction with theaccompanying drawings, illustrating by way of example the principles ofthe invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The invention, together with objects and advantages thereof, maybest be understood by reference to the following description of thepresently preferred embodiments together with the accompanying drawingsin which:

[0062]FIG. 1 is an explanatory diagram illustrating connection pins of ajoystick port in the prior art;

[0063]FIG. 2 is an explanatory diagram illustrating an analog input of ajoystick port;

[0064]FIG. 3 is a schematic block diagram of a prior art input/outputbuffer;

[0065]FIG. 4 is a circuit diagram illustrating an input/output buffer ofFIG. 3;

[0066]FIG. 5 is a circuit diagram illustrating a tolerant circuit of theinput/output buffer of FIG. 3;

[0067]FIG. 6 is a circuit diagram illustrating an input circuit of theinput/output buffer of FIG. 3;

[0068]FIG. 7 is a circuit diagram of a prior art voltage generator;

[0069]FIG. 8 is a schematic block diagram illustrating an input/outputbuffer according to a first embodiment of the present invention;

[0070]FIG. 9 is a circuit diagram illustrating an input/output circuitof the input/output buffer of FIG. 8;

[0071]FIG. 10 is a circuit diagram illustrating a tolerant circuit ofthe input/output buffer of FIG. 8;

[0072]FIG. 11 is a circuit diagram illustrating an input circuit of theinput/output buffer of FIG. 8;

[0073]FIG. 12 is a circuit diagram illustrating a power generationcircuit of the input/output buffer of FIG. 8;

[0074]FIG. 13 is an explanatory diagram illustrating a protectioncircuit of the power generation circuit of FIG. 12;

[0075]FIG. 14 is an explanatory diagram illustrating an operationexample of the power generation circuit of FIG. 12;

[0076]FIG. 15 is an explanatory diagram illustrating a further exampleof a protection circuit;

[0077]FIGS. 16A and 16B are explanatory diagrams illustrating furtherexamples of a protection circuit;

[0078]FIG. 17 is a circuit diagram illustrating an input/output circuitaccording to a second embodiment of the present invention;

[0079]FIGS. 18A and 18B are circuit diagrams illustrating input circuitsof the second embodiment;

[0080]FIG. 19 is a schematic block diagram illustrating an input bufferaccording to a third embodiment of the present invention;

[0081]FIG. 20 is a schematic block diagram illustrating an output bufferof the third embodiment;

[0082]FIGS. 21A to 21C are explanatory diagrams illustrating a pull-upinput buffer according to a fourth embodiment of the present invention;

[0083]FIGS. 22A and 22B are explanatory diagrams illustrating the inputbuffer of FIGS. 21A to 21C provided with a failsafe function;

[0084]FIGS. 23A and 23B are explanatory diagrams illustrating thepull-up input buffer of the fourth embodiment;

[0085]FIGS. 24A and 24B are explanatory diagrams illustrating the inputbuffer of FIGS. 23A and 23B provided with a failsafe function; and

[0086]FIGS. 25A and 25B are explanatory diagrams of the input/outputcircuit of the first embodiment provided with a fail-safe function.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0087] In the drawings, like numerals are used for like elementsthroughout.

[0088]FIG. 8 is a schematic block diagram of an input/output buffer 11according to a first embodiment of the present invention. Theinput/output buffer 11 includes an input/output circuit 12, an inputcircuit 13, an output circuit 14, a tolerant circuit 15, and a powergeneration circuit (reference power generation circuit) 16.

[0089] The input/output circuit 12 provides a voltage signal EB, whichis an external input signal EB, to the input circuit 13, the tolerantcircuit 15, and the power generation circuit 16. In accordance with thevoltage of the voltage signal EB, the power generation circuit 16generates operational power (reference power) VDO for the input/outputbuffer 11. The power generation circuit 16 provides the reference powerVDO to the input/output circuit 12, the input circuit 13, and thetolerant circuit 15. The tolerant circuit 15 generates a voltage signalBP, the voltage of which corresponds with the input voltage signal EB.In accordance with the reference power VDO, the input circuit 13 adjuststhe voltage signal EB to a proper voltage to generate a signal X andoutputs the signal X to an internal circuit (not shown).

[0090] When the output circuit 14 receives a data signal A and an outputcontrol signal C from the internal circuit, the output circuit 14generates control signals AP and AN in accordance with an output controlsignal C. The control signals AP and AN are provided to the input/outputcircuit 12. In response to the control signals AP and AN, theinput/output circuit 12 generates the voltage signal EB and outputs thevoltage signal EB (output signal).

[0091] The configuration of each circuit in the input/output buffer 11will now be discussed in detail. The output circuit 14 is a widely usedcircuit and thus will not be discussed.

[0092]FIG. 9 is a circuit diagram of the input/output circuit 12. Theinput/output circuit 12 includes PMOS transistors Pt1 and Pt2 and NMOStransistors Nt1 and Nt2. In the input/output circuit 12, the source ofthe transistor Pt1 and the gate of the transistor Nt1 are supplied withthe reference power VDO. The remaining parts of the input/output circuit12 are the same as those of the input/output circuit 82 illustrated inFIG. 4.

[0093]FIG. 10 is a circuit diagram of the tolerant circuit 15. Thetolerant circuit 15 includes a resistor RI, which is a protectionresistor, and PMOS transistors Pt3 to Pt5. In the tolerant circuit 15,the source of the transistor Pt3 and the gates of the transistors Pt4and Pt5 are supplied with the reference power supply VDO. The remainingparts of the tolerant circuit 15 are the same as those of the tolerantcircuit 85 illustrated in FIG. 5.

[0094]FIG. 11 is a circuit diagram of the input circuit 13. The inputcircuit 13 includes PMOS transistors Pt6 to Pt8 and NMOS transistors Nt3to Nt7. In the input circuit 13, the source of the transistor Pt6, thedrain of the transistor Nt3, and the gates of the transistors Nt4 andNt5 are supplied with the reference power VDO. The remaining parts ofthe input circuit 13 are the same as those of the input circuit 83illustrated in FIG. 6.

[0095]FIG. 12 is a circuit diagram of the power generation circuit 16.The power generation circuit 16 includes PMOS transistors Pt9 to Pt15,NMOS transistors Nt8 to Nt12, and a resistor R2.

[0096] The gates of the transistors Nt8 and Pt9 and the source of thetransistor Pt10 is connected to a high voltage power supply VDE (e.g.,3.3 V). The source of the transistor Nt8 is connected to a low voltagepower supply VSS (ground), and the drain of the transistor Nt8 isconnected to the source of the transistor Pt9 and the gate of thetransistor Pt10. The back gate of the transistor Nt8 is connected to thelow voltage power supply VSS. The back gates of the transistors Pt9 andPt10 are connected to the output of the tolerant circuit 15 and haveabout the same voltage as the voltage signal BP.

[0097] The transistors Pt11 to Pt14 are connected in series to the drainof the transistor Pt9. The transistor Pt15 is connected to thetransistor Pt14 so that the transistors Pt11 to Pt14 are connected in areverse direction. The voltage signal EB is input to the drain of thetransistor Pt15 via the resistor R2, which is used for electrostaticdischarge (ESD) protection.

[0098] The transistors Nt9 to Nt12 (voltage-maintaining circuit 18) areconnected in series. The gate of each of the transistors Nt9 to Nt12 isconnected to the associated drain, and the back gate of each of thetransistors Nt9 to Nt12 is connected to the low voltage power supplyVSS. The source of the transistor Nt12 is connected to the low voltagepower supply VSS. The drain of the transistor Nt9 is connected to thesource of the transistor Pt10 and the source of the transistor Pt11. Thepower generation circuit 16 outputs the reference power VDO, the voltageof which is the same as the voltage at node N4.

[0099] In the power generation circuit 16, the transistors Pt11 to Pt15,which are diode-connected, function as a protection circuit 17.

[0100]FIG. 13 is an explanatory diagram illustrating the transistorconfiguration in the protection circuit 17. As shown in FIG. 13, thetransistors Pt11 to Pt15 are PMOS transistors formed on, for example, ap-type silicon substrate. The back gate of each of the transistors Pt11to Pt14 is connected to the associated drain, and the back gate of thetransistor Pt15 is connected to the source of the transistor Pt15.

[0101] The transistors Pt11 to Pt14 receive the reference power VDO inthe forward direction (PN). The transistor Pt15 receives the referencepower VDO in the reverse direction. That is, the transistors Pt11 toPt15 are diode-connected to receive the reference power VDO in themanner of PN-PN-PNPN-NP.

[0102] The operation of the input/output buffer 11 of the firstembodiment will now be discussed with reference to FIG. 14. FIG. 14 isan explanatory diagram illustrating an operation example of the powergeneration circuit 16.

[0103] A case in which the input/output buffer 11 is supplied with power(high voltage power supply VDE=3.3 V) will first be discussed. In thiscase, in the power generation circuit 16, the transistor Nt8 switches onand connects the gate of the transistor Pt10 to the low voltage powersupply VSS. This activates the transistor Pt10. In this state, referringto FIG. 14, the power generation circuit 16 generates the referencepower VDO, the voltage of which is the same as the high voltage powersupply VDE, regardless of the voltage of the voltage signal (externalinput signal) EB. Even when the voltage signal EB, the voltage (e.g., 6V) of which is greater than the high voltage power supply VDE, is input,the transistors Nt11 to Nt15 decreases the voltage of the voltage signalEB to the voltage of the high voltage power supply VDE (3.3 V). Thus,the reference power VDO is output at about 3.3 V.

[0104] A case in which the input/output buffer 11 is not supplied withpower (i.e., the high voltage power supply VDE being substantially 0 V)will now be discussed.

[0105] In this case, the transistor Nt8 switches off and the transistorPt9 switches on in the power generation circuit 16. In this state, thetransistor Pt10 switches off and the power generation circuit 16generates the reference power VDO, the voltage of which is in accordancewith the voltage signal EB, as shown in FIG. 14.

[0106] More specifically, when the input voltage signal EB, has avoltage that is substantially the same as the low voltage power supplyVSS, the voltage of the reference power VDO becomes the same as that ofthe low voltage power supply VSS (0 V). When the input voltage signal EBhas a voltage that is substantially the same as the high voltage powersupply VSS (about 3.3 V), the power generation circuit 16 generates thereference power VDO (in FIG. 14, 2.07 V), the voltage of which isobtained by decreasing the voltage of the voltage signal EB with thetransistors Pt11 to Pt15.

[0107] When the input voltage signal EB has a voltage (e.g., 6 V) thatis greater than that of the high voltage power supply VbE, the powergeneration circuit 16 generates the reference power VDO (in FIG. 14,3.62 V), the voltage of which is obtained by decreasing the voltage ofthe voltage signal EB with the transistors Pt11 to Pt15.

[0108] In this manner, the power generation circuit 16 generates thereference power VDO at about 3 V even if the voltage signal EB is inputwhen the power generation circuit 16 is not supplied with power (highvoltage power supply VDE).

[0109] A plurality (four in the first embodiment) of transistors Nt9 toNt12 are connected between the node N4 and the low voltage power supplyVSS (refer to FIG. 12). Thus, the leakage current flowing through thetransistors Nt9 to Nt12 is small. In this case, the gate voltages at thetransistors Nt9 to Nt12 are respectively 3.3 V, 2.16 V, 1.24 V, and 0.52V, and the leakage current in the path of the transistors Nt9 to Nt12 isreduced to several tens of nanoamperes.

[0110] Since the transistor Pt15 is connected to the transistors Pt11 toPt14 in the reverse direction (NP) and is reverse biased, reverseleakage current does not flow through the path of the transistors Pt11to Pt15. The gates of the transistors Pt11 to Pt15 are connected to alower voltage side (source side) when the voltage signal EB decreasesvoltage. Thus, the transistors Pt11 to Pt15 stably function. In additionto suppressing device deterioration, which is caused by an increase inthe resistance component, and voltage fluctuation of the reference powerVDO, the intended reference power VDO is accurately generated. Further,the power generation circuit 16 has the ESD protection resistor R2.Thus, voltage fluctuation is suppressed even when the voltage of thevoltage signal EB changes drastically.

[0111] The reference power VDO generated by the power generation circuit16 is supplied to the input/output circuit 12, the input circuit 13, andthe output circuit 14. Thus, regardless of whether the high voltagepower supply VDE is supplied, damage to devices and the occurrence of aleakage current is prevented in the input/output buffer 11 regardless ofthe voltage of the voltage signal EB.

[0112] In the power generation circuit 16 of the first embodiment, theprotection circuit 17 may be configured by NMOS transistors Nt13 to Nt17as shown in FIG. 15. More specifically, the transistor Nt13 receives thereference power supply VDO in the reverse direction (NP). The othertransistors Nt14 to Nt17 are connected in a direction that is reversedfrom the connection direction of the transistor Nt13. That is, thetransistors Nt13 to Nt17 are diode-connected to receive the referencevoltage VDO in the manner of NP-PN-PN-PN-PN. In this case, thetransistor Nt13 stops reverse current leakage.

[0113] The gates of the transistors Nt13 to Nt17 are each connected tothe higher voltage side (i.e., drain side) when the voltage isdecreased. Thus, the transistors Nt13 to Nt17 are stably operated,fluctuation of the reference power VDO caused by an increase in theresistance component is suppressed, and the reference power VDO isaccurately generated with the intended voltage.

[0114] The NMOS transistor protection circuit is more useful than thePMOS transistor protection circuit when laid out on an n-type siliconsubstrate. That is, when PMOS transistors (transistors Pt11 to Pt15) arelaid out on an n-type silicon substrate, a tripe well transistorconfiguration becomes necessary. As the layout area increases, thenumber of reticles and the number of processing operations increase.This increases costs. Accordingly, it is preferred that the protectioncircuit 17 be configured by PMOS transistors (transistors Pt11 to Pt15)when using a p-type silicon substrate and that the protection circuit 17be configured by NMOS transistors (transistors Nt13 to Nt17) when usingan n-type silicon substrate.

[0115] The protection circuit 17 may further be configured as shown inFIGS. 16A and 16B. In FIG. 16A, the voltages at the back gates of thePMOS transistors Pt11 to Pt15 are each generated from the divisionalvoltage of the source voltage and the low voltage power supply VSS. Thetransistors Pt11 to Pt15 are diode-connected to receive the referencepower VDO in the manner of NP-NP-NP-NP-NP.

[0116] In FIG. 16B, the back gate voltages of the NMOS transistors Nt13to Nt17 are each generated from the divisional voltage of the drainvoltage and the low voltage power supply VSS. Each transistor Nt13 toNt17 are diode-connected to receive the reference power VDO in themanner of PN-PN-PN-PN-PN. In the protection circuits of FIGS. 16A and16B, damage to the device and the occurrence of leakage current causedby the low back gate voltage is prevented.

[0117] The input/output buffer 11 of the first embodiment has theadvantages described below.

[0118] (1) The power generation circuit 16 of the input output buffer 11converts the voltage signal EB, which is input from an external device,to a proper voltage corresponding to the high voltage power supply VDEand generates the reference power VDO. The power generation circuit 16includes diode-connected transistors Pt11 to Pt15 (protection circuit17). Further, the back gates of the transistors Pt11 to Pt15 areconnected to a node at which the voltage is one other than that of thehigh voltage power supply VDE and the low voltage power supply VSS.Thus, regardless of whether the high voltage power supply VDE is beingsupplied, when the voltage signal EB is input, high voltage is preventedfrom being applied between the gate and back gate of each of thetransistors Pt11 to Pt15, and deterioration and damage to the transistoris prevented.

[0119] (2) Among the transistors Pt11 to Pt15, the transistors Pt11 toPt14 are diode-connected to receive the reference power VDO in theforward bias direction (forward direction), and the transistor Pt15 isdiode-connected to receive the reference power VDO in the reverse biasdirection (reverse direction). Thus, when the reference power VDO isgenerated, reverse leakage current is not produced and the referencepower VDO is maintained at the intended voltage.

[0120] (3) The gate of each of the transistors Pt11 to Pt15 is connectedto the associated source. When the input voltage signal EB has a voltagethat is greater than the voltage of the high voltage power supply VDEand the voltage signal EB causes a decrease in voltage, the sourcevoltage is less than the drain voltage. Thus, the increase in theresistance of the transistors Pt11 to Pt15 prevents voltage fluctuationof the reference power VDO.

[0121] (4) The power generation circuit 16 includes avoltage-maintaining circuit 18, which is configured by transistors Nt9to Nt12. The gate of the transistor Nt9 is connected to the referencepower VDO, and the gates of the transistors Nt10 to Nt12 are connectedto the high voltage side terminal (drain). Thus, the leakage currentthat flows through the transistors Nt9 to Nt12 is minimized.

[0122]FIG. 17 is a circuit diagram illustrating an input/output circuit22 of an input/output buffer 11A according to a second embodiment of thepresent invention. The input/output buffer 11A of the second embodimentis used as a game port (joystick port) to which a joystick is connected.The input/output buffer 11A is configured by partially modifying theinput/output circuit 12 and input circuit 13 of the input/output buffer11 in the first embodiment.

[0123] The input/output circuit 22 includes two NMOS transistors Nt1 andNt2 and is provided with an open drain output function. This is becausethe input/output buffer 11A, which is used as a joystick port, detectsposition information of the joystick during a period in which theinput/output buffer 11A is pulled-up to a power supply of +5 V and theinput/output circuit 22 does not require an output having a high level.

[0124]FIG. 18A is a circuit diagram illustrating an input circuit 23 ofthe input/output buffer 11A. The input circuit 23 includes an NMOStransistor Nt3, resistors R3 to R5, a comparator CMP, and a referencecircuit 23 a. As shown in FIG. 18A, a voltage signal EBR is input to thesource of the transistor Nt3 via the resistor R3. Voltage generated bydividing the reference power VDO with the resistors R4 and R5 is inputto the drain of the transistor Nt3. The gate and source of thetransistor Nt3 are connected to each other. The voltage at a node TMbetween the source of the transistor Nt3 and the resistor R3 is input toan inverting input terminal of the comparator CMP. A reference voltagesignal IP from a reference circuit 23 a, which is shown in FIG. 18B, isinput to a non-inverting terminal of the comparator CMP. The comparatorCMP compares the voltage at the node IM with the voltage of thereference voltage signal IP and generates a signal X at a low level or ahigh level in accordance with the comparison.

[0125] The reference circuit 23 a includes resistors R6 to R8, invertercircuits INV1 and INV2, and transfer gates TG1, TG2. Each of thetransfer gates TG1 and TG2 includes a PMOS transistor and an NMOStransistor. High voltage side divisional voltage generated from powersupply VDE by resistors R6 to R8 is input to the input terminal of thetransfer gate TG1. Low voltage side divisional voltage is input to theinput terminal of the transfer gate TG2.

[0126] The PMOS transistor gate of the transfer gate TG1 and the NMOStransistor gate of the transfer gate TG2 are connected to each other,and the signal X is input to each gate from the comparator CMP via aninverter circuit INV2. Further, the signal X is input to the NMOStransistor gate of the transfer gate TG1 and the PMOS transistor gate ofthe transfer gate TG2 via the inverter circuits INV1 and INV2.

[0127] The transfer gates TG1, TG2 are activated and inactivated in acomplementary manner in accordance with the signal X in the referencecircuit 23 a. The reference circuit 23 a generates the reference voltagesignal IP having reference voltage REFH when the transfer gate TG1switches on and generates the reference voltage signal IP havingreference voltage REFL when the transfer gate TC2 is activated.

[0128] The operation of the input/output buffer 11A, which includes theinput circuit 23, will now be discussed. Normally, in an input/outputbuffer used as the joystick port, a threshold voltage for recognizing aninput as a high level (threshold voltage VIL) and a threshold voltagefor recognizing an input as a low level (threshold voltage VIL) are bothset at about 3.0 V (power supply voltage (high voltage power supplyVDE=3.3 V) −0.3 V). That is, in the input/output buffer of the joystickport, the voltage difference between the source and gate of thetransistor functioning in accordance with the threshold voltage is about0.3 V and small. Thus, the operation of the transistor may be instable.

[0129] In the input circuit 23 of the second embodiment, the voltagesignal EBR is input to the source of the transistor NT3. Thus, thevoltage at node IM may be increased to the threshold voltage (about 3.0V) in accordance with the voltage level of the voltage signal EB(external input signal). In this state, voltage generated by dividingthe reference power VDO with the resistors R4 and R5 is input to thedrain of the transistor Nt3. This prevents the voltage at the node IMfrom exceeding a predetermined value.

[0130] The reference circuit 23 a generates the reference voltage signalIP having the reference voltage REFH (e.g., 3.1 V) at a timing in whichthe signal X shifts from a low level to a high level. Further, thereference circuit 23 a generates the reference voltage signal IP havingthe reference voltage REFL (e.g., 3.1 V) at a timing in which the signalX shifts from a high level to a low level. That is, the referencecircuit 23 a, which functions as a Schmitt trigger circuit, stabilizesthe output of the comparator CMP.

[0131] Accordingly, the input/output buffer 11A of the second embodimentoperates stably even when the threshold voltage of an input is high(e.g., 3.0 V) and is especially useful for a joystick port that detectsthe position information of the joystick.

[0132]FIG. 19 is a schematic block diagram of an input buffer 31according to a third embodiment of the present invention. FIG. 20 is aschematic block diagram of an output buffer 41. In the third embodiment,the input/output buffer 11 (refer to FIG. 8) of the first embodiment isused to configure either the input buffer or the output buffer.

[0133] That is, as shown in FIG. 19, the output circuit 14 is deletedfrom the input/output buffer 11 of the first embodiment. When using theinput buffer 31 as a joystick port, the input/output circuit 22 (FIG.17) and the input circuit 23 (FIG. 18) of the second embodiment may beemployed in lieu of the input/output circuit 12 and the input circuit13. Referring to FIG. 20, in the output buffer 41, the input circuit 13is eliminated from the input/output buffer 11 of the first embodiment.

[0134] An input buffer according to a fourth embodiment of the presentinvention will now be discussed with reference to FIGS. 21A to 24B. Inthe fourth embodiment, to reduce power consumption, the input bufferincludes a pull-up resistor for fixing the voltage signal EB (externalinput signal) at a high level or a pull-down resistor for fixing thevoltage signal EB at a low level.

[0135] An input buffer 51 incorporating a pull-up resistor will now bediscussed. As shown in FIG. 21A, a control signal PC for electricallydisconnecting the input buffer 51 from a pull-up resistor is normallyinput when testing the input buffer 51. More specifically, as shown inFIG. 21B, an input terminal of the voltage signal EB in the input buffer51 is connected to one end of an input protection resistor R9. The otherend of the resistor R9 is connected to a high voltage power supply VDEvia a pull-up resistor RIO and a PMOS transistor Pt21 (switch device).The control signal PC is input to the gate of the transistor Pt21. Thegate of the transistor Pt21 is connected to a low voltage power supplyVSS (ground) via a pull-down resistor R11, which stabilizes the inputlevel of the control signal PC.

[0136] Normally, the control signal PC activates the transistor Pt21 andconnects the power supply VDE to the pull-up resistor RIO in the inputbuffer 51. When conducting a test, the control signal PC inactivates thetransistor Pt21 and disconnects the power supply VDE from the pull-upresistor R10. Thus, leakage current does not flow through the pull-upresistor R10 when conducting a test, and the testing of an internalcircuit of the input buffer is accurately conducted.

[0137] When the input buffer 51 enters a fail-safe mode in a state inwhich the power supply VDE has 0 V, the voltage signal EB has 5 V, andthe control signal has 0 V, as shown in FIG. 21C, a voltage differenceof 5 V is produced between the source and drain and drain and gate ofthe transistor Pt21. Accordingly, there is a need to prevent thetransistor Pt21 from being damaged in the fail-safe mode.

[0138]FIGS. 22A and 22B are explanatory diagrams illustrating an inputbuffer 51 a that is suitable for the fail-safe mode. As shown in FIG.22A, the control signal PC is input to the gate of the transistor Pt21via an inverter circuit 52 and a NAND circuit 53 in the input buffer51A. The source of the transistor Pt21 receives the reference power VDO(refer to FIG. 12).

[0139] In the input buffer 51 a, a signal having a high level is inputto the gate of the transistor Pt21 (referred to as P-Gate in FIG. 22B)in the fail-safe mode (i.e., when the high voltage power supply VDE has0 V). More specifically, if the control signal PC is input at a lowlevel (0 V) when the power supply VDE has 0 V, a signal having a highlevel is input to the gate of the transistor Pt21. Further, if thecontrol signal PC is input at a high level (3.3 V) when the power supplyVDE has 0 V, a signal having a high level is input to the gate of thetransistor Pt21, as shown in FIG. 22B. In this state, the transistorPt21 is inactivated and thus not damaged.

[0140] An input buffer incorporating a pull-down resistor will now bediscussed. Referring to FIG. 23A, in an input buffer 61 including apull-down resistor, an input terminal of the voltage signal EB isconnected to one end of an input protection resistor R12. The other endof the resistor R12 is connected to a low voltage power supply VSS via apull-down resistor R13 and an NMOS transistor Nt21 (switch device). Thecontrol signal PC is input to the gate of the transistor Nt21 via aninverter circuit 62. The gate of the transistor Nt21 is connected to alow voltage power supply VSS via a pull-down resistor R14 forstabilizing the input level of the control signal PC.

[0141] When the input buffer 61 enters the fail-safe mode, referring toFIG. 23B, a voltage difference of 5 V is produced between the source anddrain, the drain and gate, and the drain and back gate of the transistorNt21. Accordingly, there is a need to prevent the transistor Nt21 frombeing damaged in the fail-safe mode.

[0142]FIGS. 24A and 24B are explanatory diagrams of an input buffer 61 athat is suitable for the fail-safe mode. As shown in FIG. 24A, in theinput buffer 61 a, the control signal PC is input to the gate of thetransistor Nt21 via an inverter circuit 63, a NAND circuit 64, and aninverter circuit 62. The source of the transistor Nt21 is connected tothe selector circuit 65. The selector circuit 65 controls the sourcevoltage of the transistor Nt21 at the voltage of the low voltage powersupply VSS or the voltage signal BP in accordance with whether or notpower VDE is supplied.

[0143] In the input buffer 61 a, a signal having a low level is input tothe gate of the transistor Nt21 (referred to as NGate in FIG. 24B) inthe fail-safe mode (i.e., when the high voltage power supply VDE has 0V). More specifically, if the control signal PC is input at a low level(0 V) when the power supply VDE has 0 V, a signal having a low level isinput to the gate of the transistor Nt21. Further, if the control signalPC is input at a high level (3.3 V) when the power supply VDE has 0 V, asignal having a low level is input to the gate of the transistor Nt21.In this state, the transistor Nt21 is inactivated and thus not damaged.

[0144] In the fourth embodiment, the devices of the input buffers 51 a,61 a, which include a pull-up resistor or a pull-down resistor, areprevented from being damaged when the input buffers 51 a, 61 a enter thefail-safe mode.

[0145] It should be apparent to those skilled in the art that thepresent invention may be embodied in many other specific forms withoutdeparting from the spirit or scope of the invention. Particularly, itshould be understood that the present invention may be embodied in thefollowing forms.

[0146] Although the first embodiment employs five transistors Pt, anynumber of transistors may be used, for example, three, four, six, or atleast five.

[0147] In the first embodiment, the MOS transistors (protection circuit)that decrease the voltage of the voltage signal EB may include p-channelMOS transistors and n-channel MOS transistors.

[0148] In the first embodiment, the transistor that undergoes reversebias due to the reference power VDO is not limited to the transistorPt15 and may be another transistor, such as the transistor Pt13 or thetransistor Pt14. In the protection circuit 17 of FIG. 15, the transistorthat undergoes reverse bias due to the reference power VDO is notlimited to the transistor Nt13 and may be another transistor, such asone of the transistors Nt14 to Nt17. That is, the transistor that is inthe reverse direction relative to the reference power VDO and undergoesreverse bias due to the reference power VDO is required only to bearranged at a position where it can stop a reverse current leakage.

[0149] In the first embodiment, the number of the n-channel MOStransistors in the voltage-maintaining circuit 18 is not limited to fourand may be any number, for example, three, five, or at least two.

[0150] The input/output circuit 12 (FIG. 9) of the first embodiment maybe replaced by an input/output circuit 12 a that is illustrated in FIGS.25A and 25B and suitable to a fail-safe mode. In the input/outputcircuit 12 a of FIGS. 25A and 25B, the gate of the transistor Pt1 isconnected to a selector circuit 12 b. The selector circuit 12 b normallyprovides a control signal AP (high level or low level), which isreceived from the output circuit 14 (FIG. 8), to the gate of thetransistor Pt1. When entering the fail-safe mode, the selector circuit12 b supplies the reference power VDO to the gate of the transistor Pt1.The gate of the transistor Pt2 is connected to a selector circuit 12 c.The selector circuit 12 c normally connects the gate of the transistorPt2 to the low voltage power supply VSS. During the fail-safe mode, theselector circuit 12 c supplies the reference power VDO to the gate ofthe transistor Pt2. Thus, in the input/output circuit 12 a, devices areprevented from being damaged during the fail-safe mode. This protectsthe input/output circuit 12 a.

[0151] The present examples and embodiments are to be considered asillustrative and not restrictive, and the invention is not to be limitedto the details given herein, but may be modified within the scope andequivalence of the appended claims.

What is claimed is:
 1. An input/output buffer for use with a highvoltage power supply and a low voltage power supply and receiving anexternal voltage signal, the input/output buffer comprising: a referencepower generation circuit connectable to the high voltage power supplyand the low voltage power supply for converting the voltage of theexternal voltage signal and generating reference power, the referencepower generation circuit having a protection circuit including aplurality of MOS transistors for decreasing the voltage of the externalvoltage signal to a predetermined voltage when the input/output bufferreceives the external voltage signal and is not supplied with thevoltage of the high voltage power supply, each of the MOS transistorshaving a back gate connected to a predetermined node at which thevoltage is less than the voltage of the high voltage power supply andgreater than the voltage of the low voltage power supply.
 2. Theinput/output buffer according to claim 1, wherein the plurality of MOStransistors are connected in series and each MOS transistor isdiode-connected, and wherein at least one of the MOS transistors isdiode-connected so as to undergo reverse bias due to the referencepower.
 3. The input/output buffer according to claim 2, wherein the backgate of each MOS transistor is connected to a node between two adjacentMOS transistors.
 4. The input/output buffer according to claim 1,wherein each of the MOS transistors is an n-channel MOS transistor. 5.The input/output buffer according to claim 4, wherein each n-channel MOStransistor includes a gate, a source terminal, and a drain terminal, andthe gate is connected to the source terminal and drain terminal of then-channel MOS transistor at which the voltage is greater when generatingthe reference power.
 6. The input/output buffer according to claim 4,wherein the back gate of each n-channel MOS transistor is supplied withvoltage generated by resistor-dividing the voltage difference betweenthe voltage of the low voltage power supply and the greater one of thevoltages at the source terminal and drain terminal of the n-channel MOStransistor when generating the reference power.
 7. The input/outputbuffer according to claim 1, wherein each of the MOS transistors is ap-channel MOS transistor.
 8. The input/output buffer according to claim7, wherein each p-channel MOS transistor includes a gate, a sourceterminal, and a drain terminal, and the gate is connected to the sourceterminal and drain terminal of the p-channel MOS transistor at which thevoltage is less when generating the reference power.
 9. The input/outputbuffer according to claim 7, wherein each p-channel MOS transistorincludes a back gate, a source terminal, and a drain, and the back gateis supplied with voltage generated by resistor-dividing the voltagedifference between the voltage of the low voltage power supply and thelesser one of the voltages at the source terminal and drain terminal ofthe p-channel MOS transistor when generating the reference power. 10.The input/output buffer according to claim 1, wherein the referencepower generation circuit includes a voltage-maintaining circuit havingat least two MOS transistors connected in series between the referencepower and the low voltage power supply, wherein each MOS transistorincludes a gate, a source terminal, and a drain terminal, and the gatethe gate of the one of the two MOS transistors that is connected to thereference power receives the voltage of the reference power, and thegate of the other one of the MOS transistors is connected to the sourceterminal and drain terminal of the MOS transistor at which the voltageis greater.
 11. The input/output buffer according to claim 10, whereinthe at least two MOS transistors are each an n-channel MOS transistor.12. The input/output buffer according to claim 1, wherein the pluralityof MOS transistors includes at least five MOS transistors.
 13. Theinput/output buffer according to claim 1, further comprising: aninternal circuit; an input circuit for generating a voltage signalhaving a voltage that is less than the voltage of the external voltagesignal in accordance with the external voltage signal to provide thevoltage signal to the internal circuit; an output circuit for providinga data signal from the internal circuit to an external device; and aninput/output circuit connected to the input circuit and the outputcircuit for invalidating an output of the output circuit and providingthe external voltage signal to the input circuit when the internalcircuit receives the data signal from the external device; wherein theinput circuit, the output circuit, and the input/output circuit are eachsupplied with the reference power as operational power.
 14. Theinput/output buffer according to claim 13, further comprising a tolerantcircuit having a voltage that is equal to the voltage of the highvoltage power supply when the external voltage signal is less than orequal to the voltage of the high voltage power supply, wherein thetolerant circuit generates the voltage signal having a voltage derivedfrom the external voltage signal when the voltage of the externalvoltage signal is greater than the voltage of the voltage signal;wherein the input/output circuit, the input circuit, and the referencepower generation circuit each receive the voltage signal from thetolerant circuit.
 15. An input/output buffer for receiving an externalvoltage signal via a resistor and a reference voltage signal, theinput/output buffer comprising: an input circuit including an n-channelMOS transistor and a comparator connected to the n-channel MOStransistor, the n-channel MOS transistor including: a source forreceiving the external voltage signal via the resistor; a gate connectedto the source; and a drain for receiving reference power, the voltage ofwhich is divided by a divisional resistor; wherein the comparatorcompares the external voltage signal with the reference voltage signalto determine whether the voltage of the external voltage signal isgreater than a predetermined threshold voltage from the comparison. 16.The input/output buffer according to claim 15, wherein the input circuitincludes a reference circuit connected to the comparator and is providedwith a Schmitt trigger function that varies the threshold voltage inaccordance with the output of the comparator.
 17. The input/outputbuffer according to claim 15, wherein the input/output buffer is for usewith a high voltage power supply and a low voltage power supply, theinput/output buffer further comprising: a reference power generationcircuit connectable to the high voltage power supply and the low voltagepower supply for converting the voltage of the external voltage signaland generating the reference power, wherein the reference powergeneration circuit has a protection circuit including a plurality of MOStransistors for decreasing the voltage of the external voltage signal toa predetermined voltage when the input/output buffer receives theexternal voltage signal and is not supplied with the voltage of the highvoltage power supply, each of the MOS transistors having a back gateconnected to a predetermined node at which the voltage is less than thevoltage of the high voltage power supply and greater than the voltage ofthe low voltage power supply.
 18. A method for protecting aninput/output buffer from a voltage signal that is provided from anexternal device, wherein the input/output buffer is connected to a highvoltage power supply and a low voltage power supply and includes aninput/output circuit for transferring data with the external device, themethod comprising the steps of: decreasing the voltage of the voltagesignal to a predetermined voltage with a plurality of MOS transistors,which are connected in series between the high voltage power supply andthe low voltage power supply, each MOS transistor having a back gate togenerate reference power when the input/output buffer is not suppliedwith the voltage of the high voltage power supply; supplying theinput/output circuit with the reference power; and supplying the backgate of each MOS transistor with voltage that is less than the voltageof the high voltage power supply and greater than the voltage of the lowvoltage power supply.
 19. The method according to claim 18, wherein thestep of supplying the back gate of each MOS transistor with voltageincludes supplying the back gate with the voltage of a node betweenadjacent MOS transistors.
 20. An input buffer for use with a highvoltage power supply and a low voltage power supply and for receiving anexternal voltage signal, the input buffer comprising: a reference powergeneration circuit connectable to the high voltage power supply and thelow voltage power supply for converting the voltage of the externalvoltage signal and generating reference power, the reference powergeneration circuit having a protection circuit including a plurality ofMOS transistors for decreasing the voltage of the external voltagesignal to a predetermined voltage when the external voltage signal isreceived and the voltage of the high voltage power supply is notsupplied, each of the MOS transistors having a back gate connected to apredetermined node at which the voltage is less than the voltage of thehigh voltage power supply and greater than the voltage of the lowvoltage power supply.
 21. The input buffer according to claim 20,further comprising: an input circuit including an n-channel MOStransistor and a comparator connected to the n-channel MOS transistor,the n-channel MOS transistor including: a source for receiving theexternal voltage signal via a resistor; a gate connected to the source;and a drain for receiving the reference power, the voltage of which isdivided by a divisional resistor; wherein the comparator compares theexternal voltage signal with a reference voltage signal to determinewhether the voltage of the external voltage signal is greater than apredetermined threshold voltage from the comparison.
 22. An input bufferfor receiving an external voltage signal via a resistor and a referencevoltage signal, the input buffer comprising: an input circuit includingan n-channel MOS transistor and a comparator connected to the n-channelMOS transistor, the n-channel MOS transistor including: a source forreceiving the external voltage signal via the resistor; a gate connectedto the source; and a drain for receiving reference power, the voltage ofwhich is divided by a divisional resistor; wherein the comparatorcompares the external voltage signal with the reference voltage signalto determine whether the voltage of the external voltage signal isgreater than a predetermined threshold voltage from the comparison. 23.An output buffer for use with a high voltage power supply and a lowvoltage power supply and receiving an external voltage signal, theoutput buffer comprising: a reference power generation circuitconnectable to the high voltage power supply and the low voltage powersupply for converting the voltage of the external voltage signal andgenerating reference power, the reference power generation circuithaving a protection circuit including a plurality of MOS transistors fordecreasing the voltage of the external voltage signal to a predeterminedvoltage when the output buffer receives the external voltage signal andis not supplied with the voltage of the high voltage power supply, eachof the MOS transistors having a back gate connected to a predeterminednode at which the voltage is less than the voltage of the high voltagepower supply and greater than the voltage of the low voltage powersupply.